<script setup lang="ts">
import { RouterLink, RouterView } from 'vue-router'

</script>

<template>
<!-- 用于网址来回切换 -->
 <RouterLink to="/">首页</RouterLink>
 <RouterLink to="/about">关于页面</RouterLink>
 <RouterLink to="/new">新闻</RouterLink>
 <RouterLink to="/hoole">hoole</RouterLink>

<!-- 占位 -->
  <RouterView />
</template>

<style scoped>
a{
  margin-right: 10px;
}
</style>
